package com.zxy.model;

import com.zxy.enums.WareHouseStatus;
import lombok.Data;

@Data
public class WareHouse extends BaseModel{
    private Integer id;
    private String name;
    private Integer seq;
    private Integer parentId;
    private String brief;
    private Integer status ;
    private String statusX;

    public String getStatusX() {

        WareHouseStatus status = WareHouseStatus.findByCode(this.getStatus());
        if(status!=null){
            return status.getMsg();
        }
        return "";
    }
}
